<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>梦幻西游</title>
</head>
<style>
    *{
         margin: 0;
         padding: 0;
         list-style: none;
    }
    html, body {
        height: 100%;
        overflow: hidden;
    }
    .back {
        background-image: url('https://www.17sucai.com/preview/826404/2018-06-25/xyj/imgs/2.jpg');
        width: 3920px;
        height: 100%;
        margin-left: -2000px;
        animation: back_move 5s infinite linear;
    }
    @keyframes back_move {
        from {
            margin-left: -1920px;
        }
        to {
            margin-left: 0;
        }
    }
    .content {
        height: 400px;
        width: 600px;
        border: 1px solid #333;
        position: absolute;
        left: 30%;
        top: 30%;
        /* display: inline; */
    }
    .wk {
        width: 200px;
        height: 180px;
        border: 1px solid #333;
        overflow: hidden;
    }
    .wk img {
        height: 180px;
        animation: wk_move 1s steps(8) infinite;
    }
    @keyframes wk_move {
        from {
            margin-left: 0px;
        }
        to {
            margin-left: -1600px;
        }
    }
    .bj{
        width: 200px;
        height: 180px;
        border: 1px solid #333;
        overflow: hidden;
    }
    .bj img {
        height: 180px;
        animation: wk_move 1s steps(8) infinite;
    }
    @keyframes bj_move {
        from {
            margin-left: 0px;
        }
        to {
            margin-left: -1600px;
        }
    }
</style>
<body>
    <div class="back"></div>
    <div class="content">
        <div class="wk">
            <img src="https://www.17sucai.com/preview/826404/2018-06-25/xyj/imgs/west_01_3ca39fe.png" alt="">
        </div>
        <div class="bj">
            <img src="八戒.png" alt="">
        </div>
    </div>
</body>
</html>
